<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>recgames</title>
<%@ include file="/include/jqueryinclude.jsp"%>
<link rel="stylesheet" type="text/css" href="../style/layout.css" />
<link href='http://fonts.googleapis.com/css?family=Cuprum&subset=latin' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="../style/styles.css" />
<link rel="stylesheet" type="text/css" href="../style/jquery.confirm/jquery.confirm.css" />
<script type="text/javascript" src="../scripts/clock.js"></script>
</head>
<body onload="updateClock(); setInterval('updateClock()',1000)">
	<%@ include file="/include/header.jsp"%>
	<div id="mainContent">
		<div id="mainContainer">
			<p id="meta">
				<span id="error"> <c:if
						test="${userDeleted.getUsername()!=null}">
	   				 ${userDeleted.getUsername()} deleted successfully
				</c:if>
				</span>
			</p>
			<a href="https://localhost:8443/recgames/registered/logOut.do">Log
				out</a>
			<h2>Users:</h2>
			<c:forEach var="user" items="${ users }">
				<b>${user.getUsername()}</b> 
				<a href='../registered/showUser.do?name=${user.getUsername()}'>Edit</a>
				<div class="item" value="https://localhost:8443/recgames/admin/DeleteUser.do?id=${user.getId()}&name=${user.getUsername()}" name="User: ${user.getUsername()}">
					<div class="delete"><img src="https://localhost:8443/recgames/img/delete.jpg"/></div>
				</div>
				<br>
				
			</c:forEach>
			<h2>Events</h2>
			<c:forEach var="event" items="${ events }">
					<b>${event.getEventName()}</b> 
					${event.getDate()} @${event.getTime()}
					<br /> ${event.getDescription()}
					<a href='/recgames/registered/editEvent.do?id=${event.getId()}'>Edit</a>
				<div class="item" value="https://localhost:8443/recgames/registered/deleteEvent.do?id=${event.getId()}" name="Event: ${event.getEventName()}">
					<div class="delete"><img src="https://localhost:8443/recgames/img/delete.jpg"/></div>
				</div>
				<br/>
					
				

			</c:forEach>
	
		</div>
	</div>
	<script src="../scripts/jquery.confirm.js"></script>
	<script src="../scripts/script.js"></script>
	

	

</body>
</html>